﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeclarationsInOutDetailRptList.aspx.cs" Inherits="WMS6.Web.Analytics.DeclarationsInOutDetailRptList" %>

<%@ PreviousPageType VirtualPath="~/Analytics/DeclarationsInOutDetailRptQuery.aspx" %>
<%@ Register Src="../UserControls/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>DeclarationsInOutDetailRptList</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" id="js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <base target="_self" />

    <script type="text/javascript">
        //初始化页面
        window.onload = function() {

            var action = document.getElementById("hdnActionID").value;
            if (action != null && action != "") {
                var array = action.split(',');
                initQueryPage(array[0], array[1]);
            }
            else {
                initListPage();
            }
        }
        function returnSearch()
        {
            var from = document.getElementById("hdnFrom").value;
            if(from != "")
            {
                window.location.href = "DeclarationsInOutDetailRptQuery.aspx";
            }
            else
            {
                window.history.go(-1);
            }
        }
        function confirmMsg(code)
        {
            if(code == "C001")
            {
                if(confirm('<%=GetGlobalMsgResource("C001") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }

        }
    </script>

</head>
<body>
    <form id="F15551" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="DeclarationsInOutDetailRpt" runat="server" CssClass="label_header" Text="报关进出存明细报告" ></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnRefresh" runat="server" CssClass="button" Enabled="false" Text="<%$ Resources:ButtonResource,btnRefresh %>"
                            OnClick="btnRefresh_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div id="div_List">
                    <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
                    </div>
                    <asp:GridView ID="gvDeclarationsInOutDetailRpt" runat="server" AutoGenerateColumns="False"
                        AllowSorting="True" CssClass="gridview" OnRowDataBound="gvDeclarationsInOutDetailRpt_RowDataBound"
                        OnSorting="gvDeclarationsInOutDetailRpt_Sorting"
                        PageSize="200" Width="2550px">
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                <ItemStyle CssClass="GridViewRowWidth_40" />
                            </asp:BoundField>
                            <asp:TemplateField meta:resourcekey="TemplateFieldResource1">                             
                                <ItemTemplate>
                                    <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelectResource1" />
                                </ItemTemplate>
                                <FooterTemplate>
                                    <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvDeclarationsInOutDetailRpt');" />
                                </FooterTemplate>
                                <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                            </asp:TemplateField>
                               <asp:BoundField DataField="IN_DECLARATIONS_ID" HeaderText="入区报关单号" FooterText="入区报关单号"
                                SortExpression="A.IN_DECLARATIONS_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="COMPANY_DECLARATIONGS_ID" HeaderText="企业出口报关单号" FooterText="企业出口报关单号" SortExpression="A.COMPANY_DECLARATIONGS_ID">
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:BoundField>
                             <asp:TemplateField FooterText="申报日期" HeaderText="申报日期" SortExpression="A.IN_DECLARATIONS_DATE"
                                meta:resourcekey="DECLARATIONS_DATE">
                                <ItemTemplate>
                                    <asp:Label ID="lblInDeclarationsDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("IN_DECLARATIONS_DATE").ToString()) %>'
                                       ></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                           <asp:BoundField DataField="SKU_ID" HeaderText="货品代码" FooterText="货品代码" SortExpression="A.SKU_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                              <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" SortExpression="SKU_DESCR"
                                meta:resourcekey="SKU_DESCR">
                                <ItemTemplate>
                                    <asp:Label ID="lblSkuDescr" runat="server" Text='<%# Eval("SKU_DESCR").ToString() %>'
                                        meta:resourcekey="lblSkuDescr"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="ITEM_NO_ID" HeaderText="项号" FooterText="项号" SortExpression="A.ITEM_NO_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="项号名称" HeaderText="项号名称" SortExpression="ITEM_NO_DESCR"
                                meta:resourcekey="ITEM_NO_DESCR">
                                <ItemTemplate>
                                    <asp:Label ID="lblItemNoDescr" runat="server" Text='<%# Eval("ITEM_DESCR").ToString() %>'
                                        meta:resourcekey="lblSkuDescr"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="UOM_DESCR" HeaderText="单位" FooterText="单位" SortExpression="UOM_DESCR"
                                meta:resourcekey="UOM_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                             <asp:TemplateField FooterText="入区报关数量" HeaderText="入区报关数量"  meta:resourcekey="FieldInvQty" SortExpression="IN_QTY">                                <ItemTemplate>                                    <asp:Label ID="lblInvQty" runat="server" Text='<%# GetPreferenceDigit(Eval("IN_QTY").ToString()) %>'                                        meta:resourcekey="FieldInvQty"></asp:Label>                                </ItemTemplate>                                <ItemStyle CssClass="GridViewRowWidth_100" />                            </asp:TemplateField> 
                               <asp:BoundField DataField="OT_DECLARATIONS_ID" HeaderText="出区报关单号" FooterText="出区报关单号"
                                SortExpression="OT_DECLARATIONS_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>                            
                                <asp:TemplateField FooterText="申报日期" HeaderText="申报日期" SortExpression="OT_DECLARATIONS_DATE"
                                meta:resourcekey="OT_DECLARATIONS_DATE">
                                <ItemTemplate>
                                    <asp:Label ID="lblOtDeclarationsDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("OT_DECLARATIONS_DATE").ToString()) %>'
                                       ></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:TemplateField>
                              <asp:TemplateField FooterText="出区报关数量" HeaderText="出区报关数量" SortExpression="OT_QTY" meta:resourcekey="FieldInvQty" >                                <ItemTemplate>                                    <asp:Label ID="lblOtQty" runat="server" Text='<%# GetPreferenceDigit(Eval("OT_QTY").ToString()) %>'                                        meta:resourcekey="FieldInvQty"></asp:Label>                                </ItemTemplate>                                <ItemStyle CssClass="GridViewRowWidth_100" />                            </asp:TemplateField> 
                                 <asp:TemplateField FooterText="剩余数量" HeaderText="剩余数量"    >                                <ItemTemplate>                                    <asp:Label ID="lblRQty" runat="server" Text='<%# GetPreferenceDigit(Eval("RemainingQty").ToString()) %>'                                        meta:resourcekey="FieldInvQty"></asp:Label>                                </ItemTemplate>                                <ItemStyle CssClass="GridViewRowWidth_100" />                            </asp:TemplateField> 
                              <asp:TemplateField FooterText="托数" HeaderText="托数"    >                                <ItemTemplate>                                    <asp:Label ID="lblUdf2" runat="server" Text='<%# GetPreferenceDigit(Eval("UDF2").ToString()) %>'                                       ></asp:Label>                                </ItemTemplate>                                <ItemStyle CssClass="GridViewRowWidth_100" />                            </asp:TemplateField> 
                              <asp:TemplateField FooterText="箱数" HeaderText="箱数"    >                                <ItemTemplate>                                    <asp:Label ID="lblUdf1" runat="server" Text='<%# GetPreferenceDigit(Eval("UDF1").ToString()) %>'                                        meta:resourcekey="FieldInvQty"></asp:Label>                                </ItemTemplate>                                <ItemStyle CssClass="GridViewRowWidth_100" />                            </asp:TemplateField> 
                              <asp:TemplateField FooterText="净重" HeaderText="净重"    >                                <ItemTemplate>                                    <asp:Label ID="lblGrossWgt" runat="server" Text='<%# GetPreferenceDigit(Eval("NET_WGT").ToString()) %>'                                        meta:resourcekey="FieldInvQty"></asp:Label>                                </ItemTemplate>                                <ItemStyle CssClass="GridViewRowWidth_100" />                            </asp:TemplateField> 
                              <asp:TemplateField FooterText="毛重" HeaderText="毛重"    >                                <ItemTemplate>                                    <asp:Label ID="lblNetWgt" runat="server" Text='<%# GetPreferenceDigit(Eval("GROSS_WGT").ToString()) %>'                                        meta:resourcekey="FieldInvQty"></asp:Label>                                </ItemTemplate>                                <ItemStyle CssClass="GridViewRowWidth_100" />                            </asp:TemplateField> 
                              <asp:TemplateField FooterText="体积" HeaderText="体积"    >                                <ItemTemplate>                                    <asp:Label ID="lblCube" runat="server" Text='<%# GetPreferenceDigit(Eval("CUBE").ToString()) %>'                                        meta:resourcekey="FieldInvQty"></asp:Label>                                </ItemTemplate>                                <ItemStyle CssClass="GridViewRowWidth_100" />                            </asp:TemplateField> 
                             <asp:TemplateField FooterText="单价" HeaderText="单价"    >                                <ItemTemplate>                                    <asp:Label ID="lblunitPrice" runat="server" Text='<%# GetPreferenceDigit(Eval("UNIT_PRICE").ToString()) %>'                                        meta:resourcekey="FieldInvQty"></asp:Label>                                </ItemTemplate>                                <ItemStyle CssClass="GridViewRowWidth_100" />                            </asp:TemplateField> 
                             <asp:TemplateField FooterText="金额" HeaderText="金额"    >                                <ItemTemplate>                                    <asp:Label ID="lblExendedPrice" runat="server" Text='<%# GetPreferenceDigit(Eval("EXTENDED_PRICE").ToString()) %>'                                        meta:resourcekey="FieldInvQty"></asp:Label>                                </ItemTemplate>                                <ItemStyle CssClass="GridViewRowWidth_100" />                            </asp:TemplateField> 
                        </Columns>
                    </asp:GridView>
                </div>
                <div id="div_pager">
                    <uc1:Pager ID="PagerFooter" runat="server" OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click"
                        OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click" />
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <div id="div_List_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnNewSearch" runat="server" Text="<%$Resources:ButtonResource,btnNewSearch%>"
                            Enabled="false" CssClass="button" OnClientClick="javascript:window.location.href='DeclarationsInOutDetailRptQuery.aspx';return false;" />
                    </td>
                    <td>
                        <asp:Button ID="btnReSearch" runat="server" Text="<%$Resources:ButtonResource,btnReSearch%>"
                            Enabled="false" CssClass="button" OnClientClick="javascript:returnSearch();return false;" />
                    </td>
                    <td>
                        <asp:Button ID="btnList" runat="server" Text="<%$Resources:ButtonResource,btnList%>"
                            Enabled="false" CssClass="button" OnClick="btnList_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="<%$Resources:ButtonResource,btnExport%>"
                            Enabled="false" CssClass="button" OnClick="btnExport_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <input type="hidden" id="hdnFrom" runat="server" />
    <input type="hidden" id="hdnActionID" runat="server" />
     <input type="hidden" id="hdnQty" runat="server" />
    </form>
</body>
</html>
